<?php

namespace App\Modules\Admin\Entities\Member;
use App\Models\Model;
use App\Modules\Admin\Entities\Member\BankModel;
use Illuminate\Database\Eloquent\Relations\HasOne;

class UserBankModel extends Model
{
    protected $table = 'user_banks';
    protected $fillable = [
        'user_id',
        'bank_id',
        'number',
        'name',
    ];

    public function bank(): HasOne
    {
        return $this->hasOne(BankModel::class,'id','bank_id');
    }
}
